﻿using MvvmCross.Core.ViewModels;
using Sidvall.UI.ViewModels;
using System.Threading.Tasks;
using System.Windows.Input;

namespace Sidvall.UI.Uwp.Test.ViewModels
{
    public class Page2ViewModel : ViewModelBase
    {
        public ICommand GoPageCommand
        {
            get
            {
                return new MvxCommand(() => GoPage());
            }
        }
        public void GoPage()
        {
            ShowViewModel<Page1ViewModel>((object)null, false, "CenterContent");
        }
        protected override Task StartAsync()
        {
            Sidvall.UI.SystemContext.Current.ApplicationManager.Status = Sidvall.UI.ApplicationStatus.Started;
            return Task.FromResult(true);
        }
    }
}
